from django.db import models
# 两张表


# 用户表
class Yh(models.Model):
    user = models.CharField(max_length=20)
    pwd = models.CharField(max_length=600)


# 小说表
class Xs(models.Model):
    f = models.ForeignKey(Yh, on_delete=models.CASCADE)
    img = models.ImageField(upload_to="static")
    js = models.CharField(max_length=60)